
// @import "~element-ui/packages/theme-chalk/src/index";
@use './authorize.scss';

// $--color-primary: red; /* 改变主题色变量 */
// $--font-path: '~element-ui/lib/theme-chalk/fonts';/* 改变 icon 字体路径变量，必需 */

body {
  height: 100%;
  margin: 0px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family:
    Helvetica Neue,
    Helvetica,
    PingFang SC,
    Hiragino Sans GB,
    Microsoft YaHei,
    Arial,
    sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  a {
    color: #337ab7;
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content {
  background: rgba(66, 185, 131, 0.1);
  border-radius: 2px;
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: 0.05rem;
  a {
    color: #42b983;
    font-weight: 600;
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.editor-container .CodeMirror {
  height: 100% !important;
}

.text-center {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

.kylin-item-button,
.kylin-search-button-default {
  background-color: #fff;
  color: #262626;
  background-image: none;
  &:hover {
    color: #409eff;
    background-image: none;
  }
  &:focus {
    color: #409eff;
    background-image: none;
  }
}
.kylin-button,
.kylin-search-button {
  border: 1px solid #409eff;
  background-color: #409eff;
  color: #fff;
  background-image: none;
  &:hover {
    border: 1px solid #409eff;
    background-color: #409eff;
    color: #fff;
    background-image: none;
    opacity: 0.8;
  }
  &:focus {
    color: #fff;
    border: 1px solid #409eff;
    background-color: #409eff;
  }
}
.ky-dropdown {
  .el-button--default {
    border: 1px solid #409eff;
    background-color: #409eff;
    color: #fff;
    background-image: none;
    &:hover {
      border: 1px solid #409eff;
      background-color: #409eff;
      color: #fff;
      background-image: none;
      opacity: 0.8;
    }
    &:focus {
      color: #fff;
      border: 1px solid #409eff;
      background-color: #409eff;
    }
  }
}
a {
  color: #409eff;
}
// .el-button + .el-button {
//   margin-left: 3px;
// }

.el-card {
  .el-card__header {
    background-color: #f9f9f9;
    color: #262626;
    padding: 10px 15px;
  }
  .el-card__body {
    font-weight: 500;
    font-size: 14px;
    .el-row {
      margin-bottom: 10px;
    }
    // 超出部分换行
    .ky-right {
      line-height: 1.66667;
      word-break: break-all;
    }
  }
}

.el-upload__tip.el-form-item__error {
  color: #f56c6c;
}

/* .el-table--border, .el-table--group {
      border:1px solid #ccc !important;
  }

  .el-table td, .el-table th.is-leaf {
    border-bottom: 1px solid #ccc;
  }

  .el-table--border td, .el-table--border th, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
    border-right: 1px solid #ccc;
  } */

.dialog-footer {
  text-align: right;
  margin-top: 30px;
}

// 穿梭框宽度
.el-transfer-panel {
  width: 260px;
}

.transfer-center {
  .el-transfer-panel {
    .ky-transfer-panel__empty {
      position: relative;
      top: -50%;
    }
  }
}

.el-button--text {
  color: #36ade0;
}

.kylin-compare-radio {
  box-sizing: border-box;
  .el-radio-button__orig-radio:checked + .el-radio-button__inner {
    background-color: #409eff;
    color: #fff;
    height: 30px;
    line-height: 30px;
    padding-top: 0px;
    padding-bottom: 0px;
    box-sizing: border-box;
  }
  .el-radio-button {
    .el-radio-button__inner {
      border-color: #409eff;
      background-color: #fff;
      color: #409eff;
      height: 30px;
      line-height: 30px;
      padding-top: 0px;
      padding-bottom: 0px;
      box-sizing: border-box;
    }
  }
}

// TODO expandicon
// .el-table__expand-icon {
//   -webkit-transform: rotate(0deg);
//   transform: rotate(0deg);
// }
// .el-table__expand-column {
//   .cell {
//     height: 25px;
//   }
// }
// .el-table__expand-icon .el-icon-arrow-right:before {
//   content: '\e6d9';
//   border: 1px solid #ccc;
//   padding: 2px;
// }
// .el-table__expand-icon--expanded .el-icon-arrow-right:before {
//   content: '\e6d8';
// }

// .ky-expand-column {
//   .el-table__expand-icon > .el-icon {
//     & > svg {
//       display: none;
//     }
//     &::before {
//       content: '\e6d9';
//       border: 1px solid #ccc;
//       padding: 2px;
//     }
//   }
//   .el-table__expand-icon.el-table__expand-icon--expanded > .el-icon::before {
//     content: '\e6d8';
//   }
// }
.el-table__expand-icon > .el-icon {
  left: 0;
  top: 0;
  margin-left: 0;
  margin-top: 0;
}

.el-table__header-wrapper {
  .el-checkbox__inner {
    display: none;
  }
}

.kylin-form {
  width: 80%;
  margin: 0 auto;
}

.kylin-delete {
  color: red;
  &:hover {
    color: red !important;
    background-image: none;
  }
  &:focus {
    color: red !important;
    background-image: none;
  }
}

.row-modify {
  background-color: #ffdddd !important;
  &:hover > td {
    background-color: #ffdddd !important;
  }
}
.row-hidden {
  display: none;
}

.scroll-container {
  .el-scrollbar__wrap {
    scrollbar-width: none;
  }
}

.card-header,
.configure-confirm-table {
  .kylin-compare-radio .el-radio-button .el-radio-button__inner {
    height: 32px;
    line-height: 32px;
  }
}

.system-configure-search .el-tag {
  margin-right: 5px;
}
// 级联选择器样式
.el-cascader-panel .el-radio {
  width: 100%;
  height: 100%;
  z-index: 10;
  position: absolute;
  top: 10px;
  right: -10px;
}
// 隐藏前面的单选按钮
// .el-cascader-panel .el-radio__input {
//   visibility: hidden;
// }
.el-cascader-panel .el-cascader-node__postfix {
  top: 10px;
}

// 将 textarea 显示限制字数的区域取消背景色
// 显示限制字数的区域距右侧远一点，与滚动条不重合
.el-textarea .el-input__count {
  background: transparent;
  right: 20px;
}

// 修改 message 提示框宽度，使其超出宽度换行
.el-message {
  .el-message__content {
    max-width: 800px !important;
    word-break: break-all;
  }
}

// tooltip 悬浮框设置内容超过设定高度后加滚动条，并设置滚动条样式
.tooltip-content {
  max-height: 200px;
  max-width: 380px;
  overflow: auto;

  &::-webkit-scrollbar {
    width: 5px; //修改滚动条宽度
  }

  // 滚动条中的滑块
  &::-webkit-scrollbar-thumb {
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #666666;

    &:hover {
      background: #a3a3a3;
    }
  }

  /* 设置轨道的背景颜色 */
  &::-webkit-scrollbar-track {
    border-radius: 8px;
    background: #eeeeee;
  }
}
